package com.hvtt.web.models;

import java.io.Serializable;

public class Sys_nguoidung implements Serializable{
	private String userID="";
        private int id=0;
        private String password="";
        private String right="";
        private String cpid="";
        private String cpName="";
        private String descr="";
        private boolean tKNapTien=false;
        private boolean tongCashOut=false;
        private boolean thongKeDoanhThuBit=false;
        private boolean thongKeDoanhThuBac=false;
        private boolean thongKeKhac=false;
        private boolean thongKeDoanhThu=false;
        private boolean tongBit=false;
        private boolean tongBac=false;
        private boolean epay=false;
        private boolean nganLuong=false;
        private boolean trangThai=false;
        private boolean doanhThu=false;
        private boolean thongKeTheoGame=false;
        
        private boolean isAdmin=false;
        private boolean editInfo=false;
        private boolean thongKeTK=false;
        private boolean tkDoanhThu=false;
        private boolean isCP=false;
        private boolean isGame1=false;
        private boolean isGame2=false;
        private boolean isGame3=false;

        public void Reset()
        {
            userID="";
            id=0;
            password="";
            cpid="";
            isAdmin=false;
            isCP=false;
            isGame1=false;
            isGame2=false;
            isGame3=false;
            setEditInfo(false);
            setThongKeTK(false);
            setTkDoanhThu(false);
            setCpName("");
            tKNapTien=false;
            tongCashOut=false;
            thongKeDoanhThuBit=false;
            thongKeDoanhThuBac=false;
            thongKeKhac=false;
            thongKeDoanhThu=false;
            tongBit=false;
            tongBac=false;
            epay=false;
            nganLuong=false;
        }
    /**
     * @return the userID
     */
    public String getUserID() {
        return userID;
    }

    /**
     * @param userID the userID to set
     */
    public void setUserID(String userID) {
        this.userID = userID;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

  

    /**
     * @return the isAdmin
     */
    public boolean isIsAdmin() {
        return isAdmin;
    }

    /**
     * @param isAdmin the isAdmin to set
     */
    public void setIsAdmin(boolean isAdmin) {
        if(isAdmin)
            right="A";
        this.isAdmin = isAdmin;
    }

    /**
     * @return the isCP
     */
    public boolean isIsCP() {
        if(isCP)
            right="C";
        return isCP;
    }

    /**
     * @param isCP the isCP to set
     */
    public void setIsCP(boolean isCP) {
        this.isCP = isCP;
    }

    /**
     * @return the isGame1
     */
    public boolean isIsGame1() {
        return isGame1;
    }

    /**
     * @param isGame1 the isGame1 to set
     */
    public void setIsGame1(boolean isGame1) {
        this.isGame1 = isGame1;
    }

    /**
     * @return the isGame2
     */
    public boolean isIsGame2() {
        return isGame2;
    }

    /**
     * @param isGame2 the isGame2 to set
     */
    public void setIsGame2(boolean isGame2) {
        this.isGame2 = isGame2;
    }

    /**
     * @return the isGame3
     */
    public boolean isIsGame3() {
        return isGame3;
    }

    /**
     * @param isGame3 the isGame3 to set
     */
    public void setIsGame3(boolean isGame3) {
        this.isGame3 = isGame3;
    }

    /**
     * @return the right
     */
    public String getRight() {
        return (isAdmin?"A":"C");
    }

    /**
     * @param right the right to set
     */
    public void setRight(String right) {
        if("A".equals(right.trim()))
        {
            isAdmin=true;
            isCP=false;
        }
        else
        {
            isCP=true;
            isAdmin=false;
        }
        this.right = right;
    }

    /**
     * @return the cpid
     */
    public String getCpid() {
        return cpid;
    }

    /**
     * @param cpid the cpid to set
     */
    public void setCpid(String cpid) {
        this.cpid = cpid;
    }

    /**
     * @return the cpName
     */
    public String getCpName() {
        return cpName;
    }

    /**
     * @param cpName the cpName to set
     */
    public void setCpName(String cpName) {
        this.cpName = cpName;
    }

    /**
     * @return the editInfo
     */
    public boolean isEditInfo() {
        return editInfo;
    }

    /**
     * @param editInfo the editInfo to set
     */
    public void setEditInfo(boolean editInfo) {
        this.editInfo = editInfo;
    }

    /**
     * @return the thongKeTK
     */
    public boolean isThongKeTK() {
        return thongKeTK;
    }

    /**
     * @param thongKeTK the thongKeTK to set
     */
    public void setThongKeTK(boolean thongKeTK) {
        this.thongKeTK = thongKeTK;
    }

    /**
     * @return the tkDoanhThu
     */
    public boolean isTkDoanhThu() {
        return tkDoanhThu;
    }

    /**
     * @param tkDoanhThu the tkDoanhThu to set
     */
    public void setTkDoanhThu(boolean tkDoanhThu) {
        this.tkDoanhThu = tkDoanhThu;
    }

    /**
     * @return the descr
     */
    public String getDescr() {
        return descr;
    }

    /**
     * @param descr the descr to set
     */
    public void setDescr(String descr) {
        this.descr = descr;
    }

    /**
     * @return the tKNapTien
     */
    public boolean istKNapTien() {
        return tKNapTien;
    }

    /**
     * @param tKNapTien the tKNapTien to set
     */
    public void settKNapTien(boolean tKNapTien) {
        this.tKNapTien = tKNapTien;
    }

    /**
     * @return the tongCashOut
     */
    public boolean isTongCashOut() {
        return tongCashOut;
    }

    /**
     * @param tongCashOut the tongCashOut to set
     */
    public void setTongCashOut(boolean tongCashOut) {
        this.tongCashOut = tongCashOut;
    }

    /**
     * @return the thongKeDoanhThuBit
     */
    public boolean isThongKeDoanhThuBit() {
        return thongKeDoanhThuBit;
    }

    /**
     * @param thongKeDoanhThuBit the thongKeDoanhThuBit to set
     */
    public void setThongKeDoanhThuBit(boolean thongKeDoanhThuBit) {
        this.thongKeDoanhThuBit = thongKeDoanhThuBit;
    }

    /**
     * @return the thongKeDoanhThuBac
     */
    public boolean isThongKeDoanhThuBac() {
        return thongKeDoanhThuBac;
    }

    /**
     * @param thongKeDoanhThuBac the thongKeDoanhThuBac to set
     */
    public void setThongKeDoanhThuBac(boolean thongKeDoanhThuBac) {
        this.thongKeDoanhThuBac = thongKeDoanhThuBac;
    }

    /**
     * @return the thongKeKhac
     */
    public boolean isThongKeKhac() {
        return thongKeKhac;
    }

    /**
     * @param thongKeKhac the thongKeKhac to set
     */
    public void setThongKeKhac(boolean thongKeKhac) {
        this.thongKeKhac = thongKeKhac;
    }

    /**
     * @return the thongKeDoanhThu
     */
    public boolean isThongKeDoanhThu() {
        return thongKeDoanhThu;
    }

    /**
     * @param thongKeDoanhThu the thongKeDoanhThu to set
     */
    public void setThongKeDoanhThu(boolean thongKeDoanhThu) {
        this.thongKeDoanhThu = thongKeDoanhThu;
    }

    /**
     * @return the tongBit
     */
    public boolean isTongBit() {
        return tongBit;
    }

    /**
     * @param tongBit the tongBit to set
     */
    public void setTongBit(boolean tongBit) {
        this.tongBit = tongBit;
    }

    /**
     * @return the tongBac
     */
    public boolean isTongBac() {
        return tongBac;
    }

    /**
     * @param tongBac the tongBac to set
     */
    public void setTongBac(boolean tongBac) {
        this.tongBac = tongBac;
    }

    /**
     * @return the epay
     */
    public boolean isEpay() {
        return epay;
    }

    /**
     * @param epay the epay to set
     */
    public void setEpay(boolean epay) {
        this.epay = epay;
    }

    /**
     * @return the nganLuong
     */
    public boolean isNganLuong() {
        return nganLuong;
    }

    /**
     * @param nganLuong the nganLuong to set
     */
    public void setNganLuong(boolean nganLuong) {
        this.nganLuong = nganLuong;
    }

    /**
     * @return the trangThai
     */
    public boolean isTrangThai() {
        return trangThai;
    }

    /**
     * @param trangThai the trangThai to set
     */
    public void setTrangThai(boolean trangThai) {
        this.trangThai = trangThai;
    }

    /**
     * @return the doanhThu
     */
    public boolean isDoanhThu() {
        return doanhThu;
    }

    /**
     * @param doanhThu the doanhThu to set
     */
    public void setDoanhThu(boolean doanhThu) {
        this.doanhThu = doanhThu;
    }

    /**
     * @return the thongKeTheoGame
     */
    public boolean isThongKeTheoGame() {
        return thongKeTheoGame;
    }

    /**
     * @param thongKeTheoGame the thongKeTheoGame to set
     */
    public void setThongKeTheoGame(boolean thongKeTheoGame) {
        this.thongKeTheoGame = thongKeTheoGame;
    }
        
        
}